Skip to main content

User Settings

Overview

The User Settings APIs provide access to user session data within Motadata ObserveOps. These endpoints allow administrators to retrieve information about currently active users, including browser details, operating system, session duration, and remote IP address.

Available Endpoints

MethodEndpointDescription
GET/settings/users/active-usersReturns a list of all users currently active in the system.

Response Fields

The GET /settings/users/active-users endpoint returns the following fields for each active session:

FieldTypeDescription
user.namestringThe username of the logged-in user (e.g., admin).
user.idintegerThe unique identifier of the user.
user.typestringThe type of user account (e.g., System).
browserstringThe browser used for the session (e.g., Chrome).
versionstringThe browser version (e.g., 134.0.0.0).
osstringThe operating system of the user's machine (e.g., Linux).
remote.addressstringThe IP address from which the user is connected.
last.active.timestampintegerUnix timestamp of the user's last activity.
durationintegerDuration of the session in seconds.
userAgentstringThe full user-agent string from the browser.

Authentication

All endpoints in this category require a valid session cookie or API token. Unauthorized requests receive a 403 Forbidden response.

Use Cases

  • Session Auditing — Track who is currently logged in and from which IP address.
  • Security Monitoring — Detect unexpected or unauthorized active sessions.
  • Activity Tracking — Monitor session duration and last activity timestamps for users.